//
//  CloseH5Message.m
//  SulitLoan
//
//  Created by 虞嘉伟 on 2025/3/12.
//  
  

#import "CloseH5Message.h"

@implementation CloseH5Message

- (NSString *)name {
    return @"rhinocero";
}
- (instancetype)initWithController:(UIViewController *)controller {
    if (self = [super init]) {
        self.controller = controller;
    }
    return self;
}
- (void)handleMessage:(WKScriptMessage *)message {
    if ([message.name isEqualToString:self.name]) {
        [_controller.navigationController popViewControllerAnimated:YES];
    }
}

@end
